package Homework;

public class Demo04 {

	public static void main(String[] args) {
		FizzBuzz fizzBuzz = new FizzBuzz(21);
		
		Thread printNum = new ChangePrintNumber("number",fizzBuzz);
		Thread printBuzz = new ChangePrintNumber("buzz",fizzBuzz);
		Thread printFizz = new ChangePrintNumber("fizz",fizzBuzz);
		Thread printFizzbuzz = new ChangePrintNumber("fizzbuzz",fizzBuzz);
		
		printNum.start();
		printBuzz.start();
		printFizz.start();
		printFizzbuzz.start();
	}

}
